// /song/url?id=525278976
import request from "./http";

// 获取歌曲url
export function getSongUrl(params){
    return request({
        url:"/song/url",
        method:"get",
        params
    })
}

// 获取歌曲详情
// /song/detail?ids=347230
export function getSongDetail(params){
    return request({
        url:"/song/detail",
        method:"get",
        params
    })
}

// 获取歌词
export function getLyric(params){
    return request({
        url:"/lyric",
        method:"get",
        params
    })
}

// 收藏我喜欢的音乐
// /like?id=347230
export function getLike(params){
    return request({
        url:"/like",
        method:"get",
        params
    })
}

// /comment/music?id=186016&limit=1 对应晴天评论
export function getCommentMusic(params){
    return request({
        url:"/comment/music",
        method:"get",
        params
    })
}


// 最新评论
// /comment/new?type=0&id=1407551413&sortType=3
export function getCommentNew(params){
    return request({
        url:"/comment/new",
        method:"get",
        params
    })
}

// 最热评论
// /comment/hot?id=186016&type=0
export function getCommentHot(params){
    return request({
        url:"/comment/hot",
        method:"get",
        params
    })
}

// 发送评论
// /comment?t=1&type=0&id=5436712&content=test
export function getComment(params){
    return request({
        url:"/comment",
        method:"get",
        params
    })
}

// 点赞
// /comment/like?id=29178366&cid=12840183&t=1&type=0
export function getCommentLike(params){
    return request({
        url:"/comment/like",
        method:"get",
        params
    })
}

